package cn.sofwin.day0107.homework;

public class Print4 {
    public static void main(String[] args) {
        int i = 0;

        while(i < 9){
            int j = 0;
            while(j < 17){
                if(j>=9-i && j<9+i){
                    System.out.print("*");
                }else{
                    System.out.print(" ");
                }
                j++;
            }
            System.out.print("\n");
            i++;

        }

    }
}
